/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.es.schema;

import com.pingan.haofang.searchcloud.api.schema.IndexSchema;

/**
 * es schema管理
 *
 * @author zhangbi617
 * @date 2017-07-04
 */
@Deprecated
public interface MappingManageService {

    /**
     * 创建schema
     *
     * @param host
     * @param schema
     * @param configName
     * @return
     */
    void create(String host, IndexSchema schema, String configName);

    /**
     * 获取schema
     *
     * @param host
     * @param configName
     * @return
     */
    IndexSchema get(String host, String configName);

    /**
     * 删除schema
     *
     * @param host
     * @param configName
     */
    void delete(String host, String configName);

}
